<?php

use Workerman\Worker;
use Workerman\WebServer;

require_once __DIR__ . '/vendor/autoload.php';

$web_work = new WebServer('http://0.0.0.0:8080');
$web_work->addRoot('www.example.com', 'wwwroot');
$web_work->count = 1;


if (!defined('GLOBAL_START')) {
    Worker::runAll();
}